.brand-logo {
  width: 80px;
  height: 50px;
  box-shadow: 0 0 0 1px #dcdfe6 inset;

  :deep(.el-upload) {
    width: 100%;
    height: 100%;
  }
}

.add_brand {
  height: calc(100vh - 92px);
  box-sizing: border-box;
  padding: 12px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;

  .header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #fff;

    .title {
      font-size: 18px;
    }

    .btn_group {
      display: flex;
      column-gap: 5px;
    }
  }

  .body {
    min-height: calc(100% - 64px);
    max-height: calc(100% - 64px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    row-gap: 12px;

    .brand_info {
      padding: 18px;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      row-gap: 18px;

      .title {
        font-size: 14px;
        font-weight: bold;
        padding-left: 6px;
        border-left: 3px solid $primaryColor;
      }

      .form {
        padding: 0 32px;

        :deep(.el-form) {
          display: flex;
          flex-direction: column;
          row-gap: 18px;

          .form_content {
            display: flex;
            flex-wrap: wrap;
            column-gap: 72px;
            row-gap: 18px;
          }

          .el-form-item {
            margin: 0;

            .el-form-item__label {
              height: 28px;
              line-height: 28px;
            }

            .el-form-item__content {
              height: fit-content;
              flex-direction: column;
              align-items: flex-start;

              .el-input {
                width: 405px;
              }

              .el-form-item__error {
                margin: 3px 0 0 0;
                padding: 0;
              }

              .iconfont {
                color: #fff;
              }
            }
          }
        }
      }
    }

    .param_info {
      background-color: #fff;
      box-sizing: border-box;
      padding: 18px;
      display: flex;
      flex-direction: column;
      row-gap: 18px;

      .title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        line-height: 16px;

        .content {
          display: flex;
          align-items: center;
          column-gap: 5px;

          .text {
            font-size: 14px;
            border-left: 3px solid $primaryColor;
            font-weight: bold;
            padding-left: 6px;
          }

          .switch_container {
            height: 20px;
            display: flex;
            column-gap: 5px;
            align-items: center;

            :deep(.el-switch) {
              height: 20px;
            }
          }
        }

        .tip {
          color: $primaryColor;
        }
      }

      .form_container {
        display: flex;
        flex-direction: column;
        padding: 0 32px;

        .titles {
          display: flex;
          column-gap: 12px;
        }

        .line {
          border-bottom: 1px dotted #dcdfe6;
          margin: 6px 0 22px 0;
        }

        .form {
          display: flex;
          flex-direction: column;
          row-gap: 18px;

          :deep(.el-form) {
            display: flex;
            column-gap: 12px;
            row-gap: 12px;

            .el-form-item {
              margin: 0;

              .el-form-item__content {
                .el-form-item__error {
                  margin: 3px 0 0 0;
                  padding: 0;
                }
              }
            }

            .operate,
            .serial_number {
              height: 28px;
            }
          }
        }

        .titles,
        :deep(.el-form) {
          .serial_number {
            width: 30px;
            text-align: center;

            .el-form-item__content {
              width: 100%;
              justify-content: center;

              div {
                line-height: 28px;
              }
            }
          }

          .param_name {
            width: 228px;
          }

          .param_content {
            width: 370px;
          }

          .operate {
            width: 100px;

            .el-form-item__content {
              .el-space {
                // height: 28px;

                .el-space__item {
                  // height: 28px;

                  .h_link {
                    height: 28px;
                    line-height: 28px;
                  }
                }
              }
            }
          }
        }
      }
    }

    .brand_introduce {
      background-color: #fff;
      padding: 18px;
      display: flex;
      flex-direction: column;
      row-gap: 18px;
      flex: 1;

      .title {
        font-size: 14px;
        font-weight: bold;
        border-left: 3px solid $primaryColor;
        padding-left: 6px;
      }

      .form {
        height: calc(100% - 19px - 18px);
      }
    }
  }
}

.commodity_form {
  .header_btn_group {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    gap: 5px;
  }

  .card {
    border: 1px solid #cccccc;

    :deep(.w-e-bar-divider) {
      width: 0;
    }

    h3 {
      padding: 0 10px;
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      font-weight: bold;
      background-color: rgba(0, 0, 0, 0.03);
      border-bottom: 1px solid #cccccc;
    }

    .brand-edior {
      border-bottom: none;
      border-left: 1px solid #cccccc;
      border-right: 1px solid #cccccc;
    }

    .form {
      padding: 10px;

      .el-item {
        margin-bottom: 20px;

        .item-name {
          width: 380px;
        }

        .item-input {
          width: 380px;
        }

        .read {
          width: 272px;

          :deep(.el-input__wrapper) {
            background-color: #f5f7fa;
          }
        }
      }

      :deep(.addr-item) {
        width: 380px;
        margin-right: 5px;
      }

      .addr-detail {
        width: 488px;
      }

      .rule-phone {
        :deep(.el-form-item__label)::before {
          display: none;
        }
      }
    }
  }
}

.upload-card {
  width: 100px;
  height: 100px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  cursor: pointer;

  .img {
    position: relative;

    img {
      width: 100px;
      height: 100px;
      border-radius: 2px;
    }

    .img_mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100px;
      height: 100px;
      border-radius: 2px;
      background-color: rgba(#000, 0.2);
      opacity: 0;
      transition: all 0.1s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: space-around;
      color: #fff;
    }

    &:hover .img_mask {
      opacity: 1;
    }
  }

  .el-upload {
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .el-upload:hover {
    border-color: #007cff;
  }

  .avatar-uploader-icon {
    font-size: 24px;
    color: #8c939d;
    width: 100px;
    height: 100px;
    text-align: center;
  }
}

.btn_save {
  width: 3.2vw;
}

.btn_cancel {
  width: 3.2vw;
}

.mt10 {
  margin-top: 10px;
}

.edior {
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.list {
  border: 1px solid #cccccc;

  .text {
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.03);

    h3 {
      font-size: 14px;

      .switch-item {
        margin-left: 30px;
      }
    }

    span {
      font-size: 12px;
      font-weight: 400;
      color: #00c0c0;
    }
  }

  .item {
    border-top: 1px solid #e5e5e5;

    .add {
      padding: 10px;
      padding-bottom: 0;
    }

    .para-form {
      margin: 10px;
      padding-bottom: 10px;
      max-height: 200px;
      overflow-y: auto;

      :deep(.el-form-item__label) {
        justify-content: start;
      }

      .form-item {
        margin-bottom: 5px;
        margin-right: 10px;
      }

      .item-num {
        margin-right: 20px;
      }

      .item-name {
        margin-right: 142px;
      }

      .para-num {
        display: inline-flex;
        justify-content: center;
        width: 20px;
        font-size: 12px;
        margin-right: 30px;
      }

      .para-name {
        width: 200px;
      }

      .para-val {
        width: 300px;
      }

      .para-dele {
        font-size: 12px;
        color: #f56c6c;
        cursor: pointer;
      }
    }
  }
}

.btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}
